function postToshare(type)
{
		var _t = encodeURI(document.title),_url = encodeURIComponent(document.location),_u;
		switch(type)
		{
			case 'QQ':
						var _appkey ='';
						var _pic = encodeURI('');
						var _site = '';
						_u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;
			break;
			case 'sina':
				_u='http://v.t.sina.com.cn/share/share.php?url='+_url+'&appkey=&title='+_t;
			break;
			case 'douban':
				_u='http://www.douban.com/recommend/?url='+_url+'&title='+_t;
			break;
			case 'renren':
				_u='http://share.renren.com/share/buttonshare.do?link='+_url+'&title='+_t;
			break;	
			case 'kaixin':
				_u='http://www.kaixin001.com/repaste/share.php?rurl='+_url+'&rtitle='+_t;
			break;
			case 'zone':
				_u='http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+_url+'&title='+_t;
			break;	
		}
		window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
}	
	
$(function(){
	var resizeAuto=null;
    function ieWinWidth()
    {
    	if($.browser.msie)
        {
        	if(document.documentElement.clientWidth>1280)
            {
            	$('.layoutAuto').addClass('layoutAuto_ie');               
            }else
            	{
                	$('.layoutAuto').removeClass('layoutAuto_ie');        
                }

         }
	}
    ieWinWidth();
    $(window).resize(function(){
        clearTimeout(resizeAuto);
        resizeAuto=setTimeout(function(){
            ieWinWidth();
        },100);
	});
	
    //分类选择事件
	$('.selectCategory').mouseenter(function(){
		$(this).addClass('selectCategory_h');
	}).mouseleave(function(){$(this).removeClass('selectCategory_h');});
	
	$('.floatTool_wei').hover(function(){
		$(this).addClass('floatTool_wei_hover');
	},function(){$(this).removeClass('floatTool_wei_hover');});
	
	$('.floatTool_top').click(function(){$('html,body').animate({scrollTop:0},800);});
	
	if(/MSIE 6/i.test(navigator.userAgent))
	{
		$(window).scroll(function(){
			var $floatToolObj=$('.floatTool');
			var topPx=$(document).scrollTop() + $(window).height()-$floatToolObj.height();
			$floatToolObj.css({'top':topPx});
		});
	}
	
	

});